pandas split column into multiple columns by delimiter

35

df[['A', 'B']] = df['AB'].str.split(' ', 1, expand=True)
df.Name.str.split(expand=True,)
          0  1
0   Steve   Smith
1   Joe Nadal
2   Roger   Federer

Comments

Submit
0 Comments